adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
commit0f0168f8fa25f48f488da1f92e3ff1f9666814e3
treeb8b6c413a7df8477a647bdcaf6b82a7d60b81171
parentc921f7e8c3f19525cadda9aaeb29f6ca06f39a75
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff
src/corelib/mimetypes/qmimedatabase.cpp
src/corelib/mimetypes/qmimeglobpattern.cpp